package com.woniu.smallmedical.server;

import com.woniu.smallmedical.entity.Registration;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author author
 * @create 2021-09-26-8:58
 */
public interface RegistrationServer {
    //增加换号表
    void AddRegistration(Registration registration);

    //患者挂号信息展示查询
    List<Registration> registrations(@Param("registration") Registration registration,
                                     @Param("startTime")String startTime,
                                     @Param("endTime")String endTime);

    //通过患者id查询挂号信息
    Registration getBySickid(int sickid);

    //通过患者的id来修改挂号表信息
    void updateBySickid(int sickid,
                        Registration registration);
}
